import 'package:flutter/material.dart';

class MyApp8 extends StatelessWidget {
  const MyApp8({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      //导航条
      appBar: AppBar(
        title: const Text(
          'Column组件',
          style: TextStyle(color: Colors.white, fontSize: 20),
        ),
        backgroundColor: Colors.pink,
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          width: 250,
          color: Colors.pink[100],
          height: 400,
          child: Column(
            //主轴对齐方式
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            //侧轴对齐方式
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Image.network(
                'https://yanxuan-item.nosdn.127.net/72e734dd1a4d35ce650afebdaa600b57.png',
                width: 150,
              ),
              Text('美妆效果嘎嘎不卡粉末面刷'),
              Text('¥99.90'),
            ],
          ),
        ),
      ),
    );
  }
}
